package com.mall.order.dal.persistence;

import com.mall.commons.tool.tkmapper.TkMapper;
import com.mall.order.dal.entitys.Order;
import com.mall.order.dto.OrderDetailInfo;
import com.mall.order.dto.OrderDetailRequest;
import com.mall.order.dto.OrderListResponse;
import com.mall.order.vo.OrderDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper extends TkMapper<Order> {
    Long countAll();

    List<OrderDetailInfo> selectOrdersByUserId(@Param("userId") Long userId);

    OrderDetailVO getOrderDetailByOrderId(@Param("orderId") Long orderId);

    Integer updataOrderPayed(@Param("orderId") String orderId);

}